<ul class="dropdown-menu">

    {% if my %}
     <li><i class="iconfont icon-fangdajing"></i> 我创建的项目</li>
        {% for item in my %}
            <li><a href="{% url 'web:dashboard' project_id=item.id %} ">{{item.name}}</a></li>
        {% endfor %}
    {% endif %}
    <li role="separator" class="divider"></li>

    {% if join %}
        <li> <i class="iconfont icon-caidan"></i>我参与的项目</li>
        {% for item in join %}
            <li><a href="{% url 'web:dashboard' project_id=item.project.id %}">{{item.project.name}}</a></li>
        {% endfor %}
    {% endif %}
    <li><a href="web:project_list">所有项目</a></li>
</ul>